//
//  ZYWorkModeSelectView.h
//  YiLin
//
//  Created by Zyark on 2018/6/5.
//  Copyright © 2018年 Zyark. All rights reserved.
//

#import <UIKit/UIKit.h>
@class ZYModeTypeModel;
@class ZYWorkModeSelectView;
@protocol ZYWorkModeSelectViewDelegate <NSObject>
@optional
/**
 模式选择
 @param workModeSelectView 当前view
 @param modeType 选中的模式
 */
-(void)workModeSelectView:(ZYWorkModeSelectView *)workModeSelectView setModeType:(NSUInteger)modeType;

@end
@interface ZYWorkModeSelectView : UIView

@property(nonatomic,assign)CGFloat realHeight;

@property(nonatomic,assign) ZYWorkModeType workModeType;

@property(nonatomic,weak) id<ZYWorkModeSelectViewDelegate> delegate;

-(instancetype)initWithFrame:(CGRect)frame modelArray:(NSArray<ZYModeTypeModel *> *)modelArray;

-(instancetype)initWithFrame:(CGRect)frame;

/**
 初始化按钮标题
 */
-(void)setupTitle;

/**
 显示或关闭
 */
-(void)showOrHidden;

/**
 关闭
 */
-(void)close;

@end
